/*
  Part of the MasterTool3D project - http://code.google.com/p/master-tool-3d

  Copyright (c) 2011 Ingo Pueschl

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation, version 2.1.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General
  Public License along with this library; if not, write to the
  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  Boston, MA  02111-1307  USA
*/

package techjit.gfx.plugins.swe;

import techjit.gfx.core.GFX_Scene;
import techjit.util.LogManager;
import techjit.util.RuntimeParams;

public class SWE_Class extends SWE_Element {

	// FIELDS
	// header
	private int classId;
	private static int nextClassId = RuntimeParams.GFX__FIRST_ID;

	// CONSTRUCTORS
	public SWE_Class(GFX_Scene rootScene) {
		// header
		super(rootScene);
		classId = nextClassId++;

		// tail
		logConstructorResult();
	}

	@Override
	public void log() {
		LogManager.logALL("" + this);
		LogManager.indent();
		{
			super.log();
		}
		LogManager.deindent();
	}

	@Override
	public String toString() {
		return "<SWE_Class " + classId + ">";
	}

}
